package _spring_test._aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2020/5/3
 * @Description:
 */
public class AopAnnoTest {

    public void test(){
        System.out.println("test");
    }

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("application-aop2.xml");
        AopAnnoTest aopAnnoTest = (AopAnnoTest)ac.getBean("aopAnnoTest");
        aopAnnoTest.test();
    }

}
